<?php
  class ProcessLog
  {
		public $db;
	
		public function __construct($db)
		{
			if(is_object($db))
			{
				$this->db = $db;
			}
			else
			{
				die('User Class __construct Need $db object (d3sql Class).');
			}
		}
		
		public function log($userID,$Text)
		{
			$this->db->sql(" INSERT INTO snm_log (user_id,text,ip) VALUES (".intval($userID).",'".$this->db->escape($Text)."','".ip()."') ");
		}
			
  }
?>
